<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.*,model.*,util.*,control.*"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>处理</title>
</head>
<body>

<%
	request.setCharacterEncoding("utf-8");
	
	String guanzhuName = ParamUtil.getString(request,"guanzhuName");
	String guanzhuTime = ParamUtil.getString(request,"guanzhuTime");
	String guanzhuNeirong = ParamUtil.getString(request,"guanzhuNeirong");
	
	Gongtonggz gongtonggz = new Gongtonggz();
	GongtonggzControl gc = new GongtonggzControl();
	
	gongtonggz.setDongxiaoxiName(guanzhuName);
	gongtonggz.setDongxiaoxiTime(guanzhuTime);
	gongtonggz.setDongxiaoxiNeirong(guanzhuNeirong);

	
	if(gc.insertGongtonggz(gongtonggz))
	{
 %>
		<script language="javascript">
     alert("添加成功");
     window.location.href="xiaoshelian_xiaoxiguanli_gz.jsp";
     </script>
		<%} else { %>
		<script language="javascript">
     alert("添加失败");
     window.location.href="xiaoshelian_xiaoxiguanli_gz.jsp";
     </script>
		<%} %>
</body>
</html>
